/**
 * 浏览模块的通信消息类型，父页面与iframe页面保持一致
 */

import { ISceneInfo } from "./common-type";
import { IUserInfo } from "./user-hub-message-type";

enum PREVIEW_HUB_MESSAGE_TYPE {
	SETUP = 'setup',
	IFRAME_READY = 'iframeReady',
}

interface IRoomInfo{
	id:string,
	serverUrl:string,
	scene:ISceneInfo
}

interface ISetupData{
	user:IUserInfo,
	room:IRoomInfo
}


export {
    PREVIEW_HUB_MESSAGE_TYPE
};
export type {
	ISetupData,
	IRoomInfo
};